﻿using PineLake.Drmwe.Lib.EnumText;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.Lib.ResultMsg
{
    /// <summary>
    /// 操作信息
    /// </summary>
    public class ActionResultMsg
    {
        /// <summary>
        /// 设置默认值
        /// </summary>
        public ActionResultMsg()
        {
            this.ActionCode = (int)ActionStatusCodeEnum.Success;
            this.Info = ActionStatusCodeEnum.Success.GetEnumText();
        }


        /// <summary>
        /// 状态码
        /// </summary>
        public int ActionCode { get; set; }

        /// <summary>
        /// 操作信息
        /// </summary>
        public string? Info { get; set; }

        /// <summary>
        /// 返回数据
        /// </summary>
        public object? Data { get; set; }
    }
}
